//
//  OldActivityModel.m
//  Shengzhuli
//
//  Created by FXGuo on 2017/7/22.
//  Copyright © 2017年 kamangkeji. All rights reserved.
//

#import "OldActivityModel.h"

@implementation OldActivityModel

- (instancetype)initWithDict:(NSDictionary *)dict
{
    if (self = [super init]) {
        self.ID = [dict[@"id"] integerValue];
        self.avatarUrl = dict[@"avatarUrl"];
        self.title = dict[@"title"];
        self.subtitle = dict[@"subtitle"];
        self.viewCount = [dict[@"viewCount"] integerValue];
        self.clubLogo = dict[@"clubLogo"];
        self.clubName = dict[@"clubName"];
        self.status = [dict[@"status"] integerValue];
        if ([dict[@"videoUrl"] length] >0) {
            self.videoName = dict[@"videoName"];
            self.videoUrl = dict[@"videoUrl"];
        }
    }
    return self;
}

+ (instancetype)objectWithDict:(NSDictionary *)dict
{
    return [[OldActivityModel alloc]initWithDict:dict];
}

@end
